//
//  QuestionContentView.h
//  DoingPaper_LS
//
//  Created by zhuxuhong on 2016/11/4.
//  Copyright © 2016年 zhuxuhong. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, QuestionContentViewType) {
    QuestionStem, //题干 0
    QuestionSingleOption, //单选题选项 1
    QuestionMultiOption, //多选题选项 2
    QuestionJudgeOption, //判断题 3
    QuestionAnalysisFooter //试题分析
};

@class QuestionContentView;

@protocol QuestionContentViewDelegate <NSObject>
-(void)questionContentView: (QuestionContentView*)view
                  viewType: (QuestionContentViewType)type
    contentDidLoadWithViewHeight: (CGFloat)height
                 indexPath: (NSIndexPath*)indexPath;

@end


@interface QuestionContentView : UIView
-(instancetype)initWithFrame: (CGRect)frame
                    viewType: (QuestionContentViewType)viewType
                  htmlString: (NSString*)html
                     baseUrl: (NSString*)url
                 atIndexPath: (NSIndexPath*)index;

@property(nonatomic,assign)id<QuestionContentViewDelegate> delegate;

-(void)setIconSelected: (BOOL)selected; // 更改选中图片

@end
